package fun.hijklmn.magic.image.client.api;

import fun.hijklmn.magic.image.common.pojo.Image;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @Description
 * @Author fs
 * @Date 2021/5/21 14:45
 * @Version 0.0.1-SNAPSHOT
 **/
@FeignClient(name = "imageAdminService", url = "image-server")
public interface ImageAdminServiceApi {

    @PutMapping(value = "save", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    Image save(@SpringQueryMap Image image);

}
